package com.software.demo1;

import org.springframework.stereotype.Component;

@Component
public class Student {
    private String stuNo;
    private String name;

    public Student() {
        System.out.println("对象被实例化了");
    }

    public void study() {
        System.out.println("学生正在学习");
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
